﻿@model Login.Models.LoginModel

@{
    ViewBag.Title = "Inloggen";
}

<h2>Inloggen</h2>
<p>
    Gebruik onderstaand formulier om in te loggen.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true, "Inloggen is mislukt. Corrigeer de fouten en probeer het opnieuw.")

@using (Html.BeginForm()) {
    <table>
        <tr>
            <td>@Html.LabelFor(m => m.Username)</td>
            <td>@Html.TextBoxFor(m => m.Username)</td>
            <td>@Html.ValidationMessageFor(m => m.Username)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.Password)</td>
            <td>@Html.PasswordFor(m => m.Password)</td>
            <td>@Html.ValidationMessageFor(m => m.Password)</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td><input type="submit" value="Inloggen" /></td>
            <td>&nbsp;</td>
        </tr>
    </table>
}

<br /><br />
@ViewBag.UserName
<br />
@ViewBag.Password
<br />
@ViewBag.ReturnUrl
